package com.woniu.zsd.merchant.client;

import com.woniu.config.FeignConfig;
import com.woniu.zsd.commons.core.model.Result;
import com.woniu.zsd.merchant.form.UserInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
@FeignClient(name = "zsd-user", configuration = FeignConfig.class)
public interface UserClient {
    @GetMapping("/user-info/userInfo")
    Result<UserInfo> userInfo(@RequestHeader("token") String token);
}
